package com.sunda.spmsorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 物料分类表
 * </p>
 *
 * @author Wayne
 * @since 2020-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("MATERIAL_CATEGORY")
@ApiModel(value="MaterialCategory对象", description="物料分类表")
public class MaterialCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物料分类编码")
    @TableId("CATEGORY_ID")
    private Integer categoryId;

    @ApiModelProperty(value = "物料分类级别")
    @TableField("CATEGORY_LEVEL")
    private Integer categoryLevel;

    @ApiModelProperty(value = "父分类id")
    @TableField("PARENT_ID")
    private Integer parentId;

    @ApiModelProperty(value = "物料分类名称")
    @TableField("CATEGORY_NAME")
    private String categoryName;

    @ApiModelProperty(value = "物料分类英文名称")
    @TableField("CATEGORY_EN_NAME")
    private String categoryENName;

    @ApiModelProperty(value = "排序值(字段越大越靠前)")
    @TableField("CATEGORY_RANK")
    private Integer categoryRank;

    @ApiModelProperty(value = "目录描述")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "创建者id")
    @TableField("CREATE_USERID")
    private String createUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "修改者id")
    @TableField("UPDATE_USERID")
    private String updateUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "删除标识字段(0-未删除 1-已删除)")
    @TableField("IS_DELETED")
    private String isDeleted;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getCategoryLevel() {
        return categoryLevel;
    }

    public void setCategoryLevel(Integer categoryLevel) {
        this.categoryLevel = categoryLevel;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getCategoryRank() {
        return categoryRank;
    }

    public void setCategoryRank(Integer categoryRank) {
        this.categoryRank = categoryRank;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getCategoryENName() {
        return categoryENName;
    }

    public void setCategoryENName(String categoryENName) {
        this.categoryENName = categoryENName;
    }

    @Override
    public String toString() {
        return "MaterialCategory{" +
                "categoryId=" + categoryId +
                ", categoryLevel=" + categoryLevel +
                ", parentId=" + parentId +
                ", categoryName='" + categoryName + '\'' +
                ", categoryENName='" + categoryENName + '\'' +
                ", categoryRank=" + categoryRank +
                ", description='" + description + '\'' +
                ", createUserId='" + createUserId + '\'' +
                ", createTime=" + createTime +
                ", updateUserId='" + updateUserId + '\'' +
                ", updateTime=" + updateTime +
                ", isDeleted='" + isDeleted + '\'' +
                '}';
    }
}
